/*
============================================================================
 Name        : dd_player.h
 Author      : Jian
 Version     :
 Copyright   : GPL
 Description : dd_player.h - header file
============================================================================
*/

#ifndef DD_PLAYER_H
#define DD_PLAYER_H

/* INCLUDES */
#include "dd_define.h"
#include "dd_player_msg.h"


__DD_BEGIN_DECLS

/* NOTE: the platform must call it before all other api being called, and must call it only once in a thread-safe env (like pthread_once() function) */
void dd_env_init() ;

/* API should call this first before call another API */
int dd_env_is_ready() ;

int dd_player_run() ;

int dd_player_play(const char* file) ;

int dd_player_pause() ;

int dd_player_stop() ;

int dd_player_set_position(DD_UINT second) ;

__DD_END_DECLS

#endif  /* DD_PLAYER_H */

/* End of File */
